package com.panda.web.mapper.wechat;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.panda.web.entity.wechat.WechatMajorWscp;
import com.panda.web.entity.wechatinfo.UserMajorRgpp;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface WechatMajorWscpMapper extends BaseMapper<WechatMajorWscp> {
    @Delete("delete from wechat_major_wscp where openid =#{openid}")
    void deleteByOpenid(String openid);
    @Select("select * from wechat_major_wscp where openid=#{openid}")
    List<WechatMajorWscp> findByOpenid(String openid);
}
